package com.soccertgc.core.game.events
{
	import com.soccertgc.core.game.Game;
	import com.soccertgc.core.game.GamePhase;
	
	public class GamePhaseProgressEvent extends GamePhaseEvent
	{
		
		// -------------------------------------------------------------------------------
		// FIELDS
		// -------------------------------------------------------------------------------
		
		private var _elapsed:Number;
		private var _timeout:Number;
		private var _percentage:Number;
		
		// -------------------------------------------------------------------------------
		// CONSTRUCTOR
		// -------------------------------------------------------------------------------
		
		public function GamePhaseProgressEvent(g:Game, p:GamePhase, elapsed:Number, timeout: Number, percentage:Number)
		{
			super(GameEvent.EVENT_GAME_PHASE_PROGRESS, g, p);
			// Init
			_elapsed	= elapsed;
			_timeout	= timeout;
			_percentage	= percentage;	
		}
		
		// -------------------------------------------------------------------------------
		// PROPERTIES
		// -------------------------------------------------------------------------------

		public function get elapsed():Number
		{
			return _elapsed;
		}

		public function get timeout():Number
		{
			return _timeout;
		}

		public function get percentage():Number
		{
			return _percentage;
		}


	}
}